package com.ctshk.rpc.order.season.req;

import com.ctshk.rpc.order.season.dto.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.List;

/**
 * @author  杨林
 * @date  2021/4/6 10:32
 * @version 1.0
 */
@Data
@ApiModel(value="DynamicProductReq", description="预订中心-自由行套票添加购物车")
public class DynamicProductReq implements Serializable {


    @ApiModelProperty(value = "套票的选择的产品 1:机票 2:船票  3:酒店 4:巴士 5:火车票 6:景点门票 7:当地玩乐 8商品 多个以逗号分隔,")
    @NotNull(message = "套票选择产品不能为空")
   // @Pattern(regexp = "^[12345678]$", message = "选择的产品类型有误")
    private String seasonProductFlag;

    @ApiModelProperty(value = "机票信息")
    List<SeasonProductOrderAirDTO> airList;

    @ApiModelProperty(value = "巴士票信息")
    List<SeasonProductOrderBusDTO> busList;

    @ApiModelProperty(value = "火车票信息")
    List<SeasonProductOrderTrainDTO> trainList;

    @ApiModelProperty(value = "船票信息")
    List<SeasonProductOrderShipDTO> shipList;

    @ApiModelProperty(value = "景点门票信息")
    List<SeasonProductOrderScenicDTO> scenicList;

    @ApiModelProperty(value = "酒店信息")
    List<SeasonProductOrderHotelDTO> hotelList;

    @ApiModelProperty(value = "本地玩乐信息")
    List<SeasonProductOrderLocalFunDTO> localFunList;

    @ApiModelProperty(value = "旅客集合")
    @NotNull(message = "旅客集合不能为空")
    List<TouristTypeReq> touristTypeReqList;


}